package top.zxybird.yun.serialization.thrift.model;

import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 单例
 */
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class TStop extends TType {

  @Getter
  @Setter
  private Byte value;

  private TStop() {
    this.setType(TTypeConstant.STOP);
    this.value = 0;
  }

  private static class SingletonHolder {
    private static final TStop INSTANCE = new TStop();
  }

  public static TStop getInstance() {
    return SingletonHolder.INSTANCE;
  }

}
